package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Author WEN
 * @Date 2023/8/2 0002
 **/
@Data
@ApiModel("商品参数实体")
public class GoodsParamVo {
    @ApiModelProperty(value = "参数ID，新增时不必传，修改时必传")
    private Long id;

    @NotBlank(message = "参数名称不能为空")
    @Length(max = 20, message = "参数名称字符长度限制20个以内")
    @ApiModelProperty(value = "参数名称")
    private String name;

    @ApiModelProperty(value = "状态：false-启用，true-禁用")
    private Boolean status;
}
